package com.lanhao.aot.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class A {
    public static void main(String[] args) {
        String input = "RMA 5a1afcd2c4d84459932f3417bfc51d63 for code 7546010201 is already in use";
        String regex = "\\d{10}";
        Pattern pattern = Pattern.compile(regex);
        Matcher matcher = pattern.matcher(input);

        if (matcher.find()) {
            System.out.println("提取到的10位数字码为：" + matcher.group());
        } else {
            System.out.println("未找到10位数字码");
        }
    }
}

